package com.agilegroup.crm.requests;

import com.agilegroup.crm.model.LeadList;
import com.octo.android.robospice.request.springandroid.SpringAndroidSpiceRequest;
import static com.agilegroup.crm.utils.CONSTANTS.*;

public class LeadsJsonRequest extends SpringAndroidSpiceRequest<LeadList>{
	
	private String empId;
	
	public LeadsJsonRequest(String empId) {
		super(LeadList.class); 
		this.empId=empId;
	}
	

	@Override
	public LeadList loadDataFromNetwork() throws Exception {
		return getRestTemplate().getForObject(leadsUrl+empId+".json", LeadList.class);
	}
}